package com.balabala.gym_system.api;

import com.balabala.gym_system.pojo.vo.AdminVo;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Author:zl
 * Date:2023/5/5 21:27
 */
@FeignClient(value = "gym-system-service", contextId = "adminFeign")
//根据用户id查找信息
public interface AdminFeignClient {
    @GetMapping("/admin/admin/findById/{id}")
    public Result<AdminVo> findById(@PathVariable("id") Long id);

}
